{% if groups['zookeepernodes']|count > 1 %}
{% for item in groups['zookeepernodes'] %}
{% if ansible_hostname == item %}
{{ loop.index }}
{% endif %}
{% endfor %}
{% endif %}
